import { myRequest } from '@/common/request.js'
// 第四个参数为true 的话是不用携带用户信息

// 说明： 收益渲染
export function getRewardIndex(params) {
  return myRequest(
    '/api/mutualaidorder/accountLog',
    'POST',
    params
  )
}

/**
兑换YKB
 */
export function putExchange(params) {
  return myRequest(
    '/api/mutualaidorder/convertPost',
    'POST',
    params
  )
}

/**
宠物兑换出售渲染
 */
export function getExchangeProfit(params) {
  return myRequest(
    '/api/mutualaidorder/exchangeProfit',
    'POST',
    params
  )
}
